package com.team.app.controller;

import javax.servlet.http.HttpSession;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.team.app.model.Rent;


/**
 * Handles requests for the application home page.
 */
@Controller
public class RentController extends AbstractController<Rent>{
	

	private static final Logger logger = LoggerFactory.getLogger(RentController.class);	
	private final String PATH_BASE="/rent";
	
	//-----------------------------------------------------------------------------------
	@Override
	@RequestMapping(value = PATH_BASE, method = {RequestMethod.GET, RequestMethod.POST})
	public String indexAction(Model model,HttpSession s,Rent obj) {	
		logger.info("RentController index");
		return PATH_BASE+"/index";
	}

	@Override
	public String addAction(Model model,HttpSession s) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String editAction(Model model,HttpSession s, Long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String confirmAction(Model model,HttpSession s, Rent obj, BindingResult result) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String completeAction(Model model,HttpSession s, Rent obj,BindingResult result) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String deleteAction(Model model,HttpSession s, Long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String backAction(Model model, HttpSession s, Rent obj) {
		// TODO Auto-generated method stub
		return null;
	}
	
	
}
